home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK2.toast / Development Kits (Disc 2) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / ImageWriterLQ (alt. rdip) / Resources.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-10  |  7.7 KB  |  126 lines  |  [TEXT/MPS ]

  1. /* ------------------------------------------------------------------------------
  2. FILENAME
  3.     Resources.h
  4.  
  5. DESCRIPTION
  6.     This module contains the ImageWriter LQ resource constants that
  7.     are common to both the New (QuickDraw GX) API resources (NewAPIResources.r) 
  8.     and the Old (QuickDraw) API resources (OldAPIResources.r).
  9.         
  10. COPYRIGHT
  11.      Copyright Apple Computer, Inc. 1988-1994
  12.      All rights reserved. 
  13.  
  14.     12/20/93        dmh        Sync'd with the shipping 1.0b3 GX driver.
  15.      8/28/94        dmh        Sync'd with the shipping 1.0.1 GX driver.
  16.  
  17. -------------------------------------------------------------------------------- */
  18.  
  19. #ifndef __NEWLWRESOURCES__
  20. #define __NEWLWRESOURCES__
  21.     
  22. // Include the public QuickDraw GX printing files 
  23. #include "PrintingResTypes.h"
  24.  
  25.  
  26. /*********************************************************************************
  27.  *                                CONSTANTS                                                              *
  28.  *********************************************************************************/
  29.  
  30. /************* Constants shared among the ImageWriter LQresource files *************/
  31.  
  32. #define    kDrvrCreatorType                        'scLQ'                            // Creator type of the driver 
  33. #define    kDrvrFileType                            'pdvr'                            // QuickDraw GX drivers have this type 
  34. #define    kDriverName                                "ImageWriter LQ"                // Name of the driver (C string) 
  35.  
  36. #define    kNewPaperTypesID                        gxPrintingDriverBaseID        // Starting resource ID of the new API paper types 
  37. #define    kNumNewPaperTypes                        6                                    // Number of new API paper type definitions 
  38.  
  39. #define    kOldPaperTypesID                        (kNewPaperTypesID + kNumNewPaperTypes + 1)    // Starting resource ID of the new API paper types 
  40. #define    kNumOldPaperTypes                        6                                                            // Number of new API paper type definitions 
  41.  
  42. #define    kFirstMsgJumpTableOffset            4                                    // Offset (bytes) into message code segment jump table of first jump table entry 
  43. #define    kNewAPISegmentID                        0                                    // Resource ID of code segment containing routines that override new API messages 
  44. #define    kOldAPISegmentID                        1                                    // Resource ID of code segment containing routines that override old API messages 
  45.  
  46. #define    kLookRsrcID                                (-4096)                            // Resource ID of the driver's 'look' resource 
  47. #define    kPAPCommRsrcID                            (-4096)                            // Resource ID of the driver's PAP 'comm' resource 
  48. #define    kSerialCommRsrcID                        (-4095)                            // Resource ID of the driver's Serial 'comm' resource 
  49. #define    kPrinterShareCommRsrcID                (-4094)                            // Resource ID of the driver's PrinterShare 'comm' resource 
  50.  
  51. #define    kPrintOptionsDlgRsrcID                (-8138)                            // Resource ID of the Options dialog that's linked to the Print dialog 
  52.  
  53. #define    kDriverStatusID                        gxPrintingDriverBaseID + 1    // Resource ID of Page Transmission 'stat' resource 
  54. #define        kSendingPartOfPageStatIdx        1                                    // Sending part of a page 'stat' list entry 
  55.  
  56. #define    kNoAlertCoolID                            0                                    // Resource ID of 'cool' alert that tells Printing Manager not to alert 
  57.  
  58. #define    kHwinRsrcID                                (-8192)                            //    Resource ID of 'hwin' help resource used by the driver
  59. #define    kHfdrRsrcID                                (-5696)                            //    Resource ID of 'hfdr' help resource used by the driver
  60. #define    kFinderHelpSTRID                        (gxPrintingDriverBaseID + 1)    //    Resource ID of 'STR ' help resource used by the driver
  61.  
  62. #define    isManualFeed                            true                                // Useful mnemonic for dealing with manual feed jobs 
  63.  
  64. #define    kBufferSize                                9100                                //    Size (in bytes) of the packaging and I/O buffers to use
  65.  
  66.                                                                                             //    Job collection item indices
  67. #define    kHeadMotionItemIndex                    0                                    // Index into the job collection of the head motion collection item 
  68. #define    kTraySettingsItemIndex                1                                    // Index into the job collection of the tray settings collection item 
  69.  
  70.                                                                                             //    Resource ID's of the various StartSendPage strings used by the Raster Imaging Engine
  71. #define    kHighResUniDirID                        gxPrintingDriverBaseID            // High resolution printing with unidirectional head movement 
  72. #define    kHighResBiDirID                        (gxPrintingDriverBaseID + 1)    // High resolution printing with bidirectional head movement 
  73. #define    kLowResUniDirID                        (gxPrintingDriverBaseID + 2)    // Low resolution printing with unidirectional head movement 
  74. #define    kLowResBiDirID                            (gxPrintingDriverBaseID + 3)    // Low resolution printing with biidirectional head movement 
  75.  
  76.                                                                                             //    Resource ID's related to the Sheetfeeder configuration dialog
  77. #define    kSheetFeederDLOG                        gxPrintingDriverBaseID            // Sheetfeeder configuration DLOG 
  78. #define    kSheetFeederDITL                        gxPrintingDriverBaseID            // Sheetfeeder configuration DITL 
  79.  
  80. #define    kTray1Menu                                gxPrintingDriverBaseID            // Menu of paper types for tray #1 
  81. #define    kTray2Menu                                (gxPrintingDriverBaseID + 1)    // Menu of paper types for tray #2 
  82. #define    kTray3Menu                                (gxPrintingDriverBaseID + 2)    // Menu of paper types for tray #3 
  83.  
  84. #define    kTray1Control                            gxPrintingDriverBaseID            // Control for paper types for tray #1 
  85. #define    kTray2Control                            (gxPrintingDriverBaseID + 1)    // Control for paper types for tray #2 
  86. #define    kTray3Control                            (gxPrintingDriverBaseID + 2)    // Control for paper types for tray #3 
  87.  
  88. #define    kOneTrayPICT                            gxPrintingDriverBaseID            // PICT respresenting a one tray configuration 
  89. #define    kTwoTrayPICT                            (gxPrintingDriverBaseID + 1)    // PICT respresenting a two tray configuration 
  90. #define    kThreeTrayPICT                            (gxPrintingDriverBaseID + 2)    // PICT respresenting a three tray configuration 
  91.  
  92.                                                                                             //    Resource ID's related to the LQ Options dialog panel
  93. #define    kLQOptionsDITL                            (gxPrintingDriverBaseID + 1)    // LQ Options dialog panel DITL 
  94. #define    kLQOptionsXdtl                            (gxPrintingDriverBaseID + 1)    // LQ Options dialog panel 'xdtl' 
  95. #define    kLQOptionsPanl                            gxPrintingDriverBaseID            // LQ Options dialog panel 'panl' 
  96.  
  97.                                                                                             //    Resource ID's related to the LQ Driver's paper input trays
  98. #define    kDefaultTrayRsrcID                    (gxTrayCountDataID + 1)        // Default 'tray' resource for the LQ 
  99. #define    kDefaultSheetFeederRsrcID            (gxTrayCountDataID + 0)        // Default 'tray' resource for the LQ with a sheet feeder attached
  100.  
  101. #define    kDefaultTrayNameID                    gxPrintingDriverBaseID            // Default 'tryn' resource for the non-sheet feeder configuration
  102. #define    kDefaultSheetFdrTray1NameID        (gxPrintingDriverBaseID + 1)    // Default 'tryn' resource for tray #1 of the sheet feeder configuration 
  103. #define    kDefaultSheetFdrTray2NameID        (gxPrintingDriverBaseID + 2)    // Default 'tryn' resource for tray #2 of the sheet feeder configuration 
  104. #define    kDefaultSheetFdrTray3NameID        (gxPrintingDriverBaseID + 3)    // Default 'tryn' resource for tray #3 of the sheet feeder configuration 
  105.  
  106.                                                                                             //    Identifiers for the various (native mode) national character sets available
  107. #define    kAmerican                                0                                    //    American character set
  108. #define    kBritish                                    1                                    //    British character set
  109. #define    kDanish                                    2                                    //    Danish character set
  110. #define    kFrench                                    3                                    //    French character set
  111. #define    kGerman                                    4                                    //    German character set
  112. #define    kItalian                                    5                                    //    Italian character set
  113. #define    kSwedish                                    6                                    //    Swedish character set
  114. #define    kSpanish                                    7                                    //    Spanish character set
  115.  
  116.                                                                                             //    'STR#' resource ID's used to support job format modes
  117. #define    kFormatModeFontsID                    gxPrintingDriverBaseID            // List of "native" mode fonts supported
  118. #define    kFormatModeStylesID                    (gxPrintingDriverBaseID + 1)    //    List of "well" known styles that are supported
  119. #define     kQualityID                                (gxPrintingDriverBaseID + 2)
  120. #define    kBoldStyle                                1                                    //    Index into kFormatModeStylesID 'STR#' of the bold style string
  121. #define    kUnderlineStyle                        2                                    //    Index into kFormatModeStylesID 'STR#' of the underline style string
  122. #define     kBestString                                1
  123. #define     kRoughString                            2
  124. #define     kHelpID                                    (gxPrintingDriverBaseID + 3)
  125. #endif __NEWLWRESOURCES__
  126.